package com.tairanchina.md.elife.rabbit.constants;

import com.tairanchina.md.elife.rabbit.client.consumer.RabbitConsumerClient;
import com.tairanchina.md.elife.rabbit.client.producer.RabbitProducerClient;


/**初始化连接 获取连接 
 * Created by lxliuxuan on 2016/12/8.
 */
public class ConnConstants {

    //生产者客户端
    private static RabbitProducerClient producerClient;

    //消费者客户端
    private static RabbitConsumerClient consumerClient;

    public static RabbitProducerClient getProducerClient() {
        return producerClient;
    }

    public static void setProducerClient(RabbitProducerClient producerClient) {
        ConnConstants.producerClient = producerClient;
    }

    public static RabbitConsumerClient getConsumerClient() {
        return consumerClient;
    }

    public static void setConsumerClient(RabbitConsumerClient consumerClient) {
        ConnConstants.consumerClient = consumerClient;
    }
}
